/*
 * @Author: 尔尔
 * @Date: 2023-12-13 16:38:58
 * @LastEditors: 尔尔
 * @LastEditTime: 2024-01-04 17:29:55
 * @FilePath: \ERP\src\api\productTechnology\productTechnologyVersions.js
 * @filePurpose:
 */
import request from "@/utils/request"

// 查询产品工艺版本列表
export function listProductTechnologyVersions(query) {
	return request({
		url: "/erp/productTechnologyVersions/list",
		method: "get",
		params: query
	})
}

// 查询产品工艺版本详细
export function getProductTechnologyVersions(id) {
	return request({
		url: "/erp/productTechnologyVersions/" + id,
		method: "get"
	})
}

// 新增产品工艺版本
export function addProductTechnologyVersions(data) {
	return request({
		url: "/erp/productTechnologyVersions",
		method: "post",
		data: data
	})
}

// 修改产品工艺版本
export function updateProductTechnologyVersions(data) {
	return request({
		url: "/erp/productTechnologyVersions",
		method: "put",
		data: data
	})
}

// 删除产品工艺版本
export function delProductTechnologyVersions(id) {
	return request({
		url: "/erp/productTechnologyVersions/" + id,
		method: "delete"
	})
}

// 获取产品工艺版本
export function version(id) {
	return request({
		url: "/erp/productTechnologyVersions/version/" + id,
		method: "get"
	})
}

// 审批工艺版本接口
export function approverRepair(data) {
	return request({
		url: "/erp/productTechnologyVersions/approverRepair",
		method: "post",
		data
	})
}

//工艺版本提交审批
export function submitVersions(data) {
	return request({
		url: "/erp/productTechnologyVersions/submitVersions",
		method: "post",
		data
	})
}

//工艺版本审批记录
export function approvalRecord(data) {
	return request({
		url: "/erp/productTechnologyVersions/approvalRecord",
		method: "post",
		data
	})
}


//复制
export function copyWorkCard(data) {
	return request({
		url: "/erp/productTechnologyVersions/copyWorkCard",
		method: "put",
		data
	})
}

// 查询计件工分

export function listworkPoint(query) {
	return request({
		url: "/erp/productTechnologyVersions/workPoint",
		method: "get",
		params: query
	})
}

// 修改计件工分

export function editworkPoint(data) {
	return request({
		url: "/erp/productTechnologyVersions/editWorkpoints",
		method: "put",
		data
	})
}

//详情

export function PointDetails(id) {
	return request({
		url: "/workpoints/workpoints/" + id,
		method: "get"
	})
}

